package com.project.util;

public class StringUtil {
	
	
	public static String CLIENTBASEPATH = "http://127.0.0.1:8088/";
//	ajax 参考 网站 http://www.cnblogs.com/lraa/p/3249990.html
	public static String REQUEST = "request";
	
	public static String SUCCESS = "success";
	public static String FAILURE = "failure";
	
	//operation
	public static String RESULT = "result";
	public static String P_OPERATOR = "操作";
	public static String O_VIEW = "查看";
	public static String O_EDIT = "修改";
	public static String O_DELETE = "删除";
	
	//cookie
	public static String USERNAME = "username";
	public static String PASSWORD = "password";
	
	//admin
	public static String ADMIN = "admin";
	
	//user
	public static String USER = "user";
	public static String USERS = "users";
	public static String LOGINSTATE = "loginstate";
	public static String LOGIN = "login";
	public static String LOGOUT = "logout";
	
	//product
	public static String PRODUCT = "product";
	public static String PRODUCTS = "products";
	
	//picture
	public static String PICTURE = "picture";
	public static String PICTURES = "pictures";
	public static String IMGALT = "服装图片";
	//clothes properties
	public static String P_ID = "编号";
	public static String P_NAME = "服装名称";
	public static String P_DESCRIPTION = "服装描述";
	public static String P_PRICE = "服装价格";
	public static String P_NUM = "库存数量";
	public static String P_KIND_ID = "服装类别";
	public static String P_URL = "链接地址";
	
	//clothes properties
	public static String U_ID = "用户编号";
	public static String U_NAME = "用户名称";
	public static String U_PHONE = "联系电话";
	public static String U_EMAIL = "邮箱";
	public static String U_IDCARD = "身份证号码";
	public static String U_DESCRIPTION = "简介";
	
	//register
	public static String E_DUPLICATENAME = "该用户名已被注册,请更换重试";
	public static String E_REGISTER = "注册失败,请稍后重试";
	
	//login
	public static String E_LOGIN = "密码或者用户名错误！";
	
	//file upload
//	E:/python/cherrypy/imageSearch/upload
//	E:/eclipse/workspace/imageretrival/WebContent/upload/
	public static String F_SAVE_DIRECTORY = "E:/python/cherrypy/imageSearch/upload/";
	public static String F_SAVE_DIRECTORY_D = "E:/python/cherrypy/imageSearch/";
	public static String F_SAVE_PATH = "/upload/";
	public static String F_TEMP_DIRECTORY = "/temp";
	// upload config
    public static int MEMORY_THRESHOLD   = 1024 * 1024 * 3;  // 3MB
    public static int MAX_FILE_SIZE      = 1024 * 1024 * 40; // 40MB
    public static int MAX_REQUEST_SIZE   = 1024 * 1024 * 50; // 50MB
	public static String F_ENCODING = "utf-8";
	
	//image
	public static Integer HEIGHT = 400;
	public static Integer WIDTH = 400;
	public static String SUFFIX = ".jpg";
	//validation
	public static String CODEERROR = "验证码错误!";
	//mail
	public static String SCEONDS = "";
	public static String HOST = "smtp.sina.com";
	public static String FROM = "scueasybill@sina.com";
	public static String MAILUSER = "scueasybill@sina.com";
	public static String MAILPWD = "easybill";
	public static String CONTENT = "验证码:";
	public static String SUBJECT = "[服装推荐系统 - 找回密码 ] ";
	//mail.setFrom("scueasybill@sina.com");
	//mail.setHost("smtp.sina.com"); // smtp.qq.com
	//mail.setUsername("scueasybill@sina.com");// 用户
	//mail.setPassword("easybill");// 密码
	
	public static String CODING = "utf-8";
	public static String CODE = "code";

	//分页
	public static Integer PAGESIZE = 5;
	public static String COUNTNUM = "countNum";
}
